﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;

namespace MuaBanLike.com
{
    public partial class MainWindow : Window
    {
        private void delay20second(Object sender, DoWorkEventArgs e)
        {
            Thread.Sleep(20000);
            //while (true)
            //{

            //    TimeSpan time = DateTime.Now - startTime;

            //    if (time.Seconds > 20)
            //    {
            //        break;
            //    }

            //}
        }

        private void delay2second(Object sender, DoWorkEventArgs e)
        {
            Thread.Sleep(2000);
            //while (true)
            //{

            //    TimeSpan time = DateTime.Now - startTime;

            //    if (time.Seconds > 2)
            //    {
            //        break;
            //    }

            //}
        }
        private void delay1second(Object sender, DoWorkEventArgs e)
        {
            Thread.Sleep(1000);
            //while (true)
            //{

            //    TimeSpan time = DateTime.Now - startTime;

            //    if (time.Seconds > 1)
            //    {
            //        break;
            //    }

            //}
        }

        private void delay5second(Object sender, DoWorkEventArgs e)
        {
            Thread.Sleep(5000);
            //while (true)
            //{

            //    TimeSpan time = DateTime.Now - startTime;

            //    if (time.Seconds > 5)
            //    {
            //        break;
            //    }

            //}
        }
    }
}
